package com.curd.demo.exception;

//自定义异常

import lombok.Getter;

@Getter
public class ServiceException extends RuntimeException{
    private String code;

    public ServiceException(String code,String msg){
        super(msg);//msg在获取父类里的数据中有，所以不需要重新定义，调用即可
        this.code = code;
    }
}
